﻿using System;

namespace Infrastructure.Events
{
    public abstract class IntegrationEvent
    {
        public Guid Id { get; private set; }
        public DateTime CreateTime { get; private set; }
        public IntegrationEvent()
        {
            Id = new Guid();
            CreateTime = DateTime.UtcNow;
        }
        public IntegrationEvent(Guid id, DateTime createTime)
        {
            Id = id;
            CreateTime = createTime;
        }
    }
}
